package thread;

/**
 * @author yuisama
 * @date 2022/06/16 19:34
 **/
public class Main {
    public static void main(String[] args) throws InterruptedException {
        // 创建线程类对象
//        ThreadMethod mt = new ThreadMethod();
//        mt.start();
        // 创建线程的任务对象
        RunnableMethod runnableMethod = new RunnableMethod();
        // 创建线程对象,将任务对象传入线程对象
        Thread thread = new Thread(runnableMethod);
        // 启动线程
        thread.start();
        System.out.println("主线程的输出语句~~");
    }
}